package com.sentiment.nlpalgo.bean;
/*
 * @author liaozhenlin
 * @email 939899727@qq.com
 * 
 */
/*
 * 该JavaBean用于依存文法分析
 * word:分词之后的某个单词
 * tag :单词的tag
 * head：单词的head
 * role：单词的成分，如主语等
 */
public class Depparser {

	private String word;
	private String tag;
	private int head;
	private String role;
	public String getWord() {
		return word;
	}
	public void setWord(String word) {
		this.word = word;
	}
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public int getHead() {
		return head;
	}
	public void setHead(int head) {
		this.head = head;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	@Override
	public String toString() {
		return "Depparser [word=" + word + ", tag=" + tag + ", head=" + head + ", role=" + role + "]";
	}
	public Depparser(String word, String tag, int head, String role) {
		super();
		this.word = word;
		this.tag = tag;
		this.head = head;
		this.role = role;
	}
	public Depparser() {
		super();
	}
	
}
